package com.jiazixuan.stock.mapper;

import com.jiazixuan.stock.pojo.entity.SysLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 17127
* @description 针对表【sys_log(系统日志)】的数据库操作Mapper
* @createDate 2025-08-14 11:17:57
* @Entity com.jiazixuan.stock.pojo.entity.SysLog
*/
public interface SysLogMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysLog record);

    int insertSelective(SysLog record);

    SysLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysLog record);

    int updateByPrimaryKey(SysLog record);

    int addLog(@Param("sysLog") SysLog sysLog);

    List<SysLog> findByCondition(@Param("username") String username, @Param("operation") String operation, @Param("startTime") String startTime, @Param("endTime") String endTime);

    int deleteBatchByLogIds(@Param("logIds") List<Long> logIds);
}
